package cc.fs.kotlin.ui.adapter

import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import cc.fs.kotlin.R

/**
 * Created by fostion on 2/18/16.
 */
class DataAdapter(private val list:List<String>) : RecyclerView.Adapter<RecyclerView.ViewHolder>() {

    override fun onCreateViewHolder(viewGroup: ViewGroup, viewType: Int): RecyclerView.ViewHolder? {
        val view = LayoutInflater.from(viewGroup.context).inflate(R.layout.item_data,viewGroup,false)
        return ItemViewHolder(view)
    }

    override fun onBindViewHolder(viewHolder: RecyclerView.ViewHolder?, position: Int) {
    }

    override fun getItemCount(): Int {
        return list.size
    }

    private inner class ItemViewHolder(view: View) : RecyclerView.ViewHolder(view) {
        fun setData() {
        }
    }

}